<template>
  <div id="userface">
    <div class="logo">
      <img src="@/assets/logo.png" />
      <span class="text">Gentelella Alela!</span>
    </div>
    <div id="user">
      <div
        id="headerLeft"
        :style="{ backgroundImage: 'url(' + myurl + ')' }"
      ></div>
      <div id="headerRight">
      <span id="welcome">welcom</span>
      <p :title="username">{{username}}</p>
      </div>
      <p style="marginTop:20px">GENERAL</p>
    </div>
  </div>
</template>

<script>
export default {
  props: ["myurl","username"],
  mounted() {
    console.log(this.myurl);
  },
};
</script>

<style scoped>
#user {
  padding: 10px 0;
  width: 230px;
  margin: 0 auto; 
}
#user div{
    display: inline-block;
}
#headerRight span{
    width:100%;
}
#headerLeft {
  margin-top:10px ;
  width: 60px;
  height: 60px;
  border: white 4px solid;
  border-radius: 100%;
  background-size: 100% 100%;
}
#headerRight{
width: 130px;
vertical-align:top;
margin:20px 0 0 20px;
}
#headerRight span{
    color: #757d85;
}
#headerRight p{
 white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}


#userface {
  height: 200px;
  margin: -200px 0 0;
  background: #18232e;
  color: white;
}
.logo {
  height: 60px;
  width: 100%;
  border-bottom: 2px solid #086da7;
}
.logo img {
  margin-left: 15px;
  width: 35px;
  height: 40px;
  margin-top: 10px;
  vertical-align: top;
}
.text {
  line-height: 60px;
  font-size: 25px;
}
</style>